<template>
    <div class="wrap">
        文章详情dfgdsfgsd
        <button @click="getArtDetail"></button>
    </div>
</template>
<script>
export default{
    data(){
        return{
            detailId:this.$route.query.id,
            category:this.$route.query.category
        }
    },
    methods:{
        getArtDetail(){
            var self = this
            setTimeout(()=>{
              this.$axios.get('http://getdata.com?uri=info_detail/category/' +self.category+ '/article/'+self.detailId)
                .then((res) => {

                  console.log(this.res)
                }, (err) => {
                  console.log(err)
                })
            }, 500)
        }
    }
}
</script>
<style>

</style>
